{% extends "base.html" %}
{% block pagetitle %} Escrow Search - Result {% endblock %}
{% block appbar %} Escrow Search {% endblock %}

{% block section %}{% endblock %}

{% block mainbody%}
          {% if not volumes %}
  <h3>No results found. Please try your search again.</h3>
{% else %}
<h3>Note: clicking on a Volume UUID will retrieve the recovery passphrase and notify the owner.</h3>

  <ol>
  {% for volume in volumes %}
    <li>
      <table>
        <tr><th>Volume UUID</th><td>
   <a href='/{{search_type}}/{{volume.volume_uuid}}?xsrf-token={{xsrf_token|urlencode}}&amp;json=0'>
            {{volume.volume_uuid}}
          </a>
        </td></tr>
        <tr><th>Hostname</th><td>{{volume.hostname}}</td></tr>
        {% if search_type == "filevault" or search_type == "provisioning" %}
          <tr><th>Platform UUID</th><td>{{volume.platform_uuid}}</td></tr>
          <tr>
            <th>Owner</th>
            <td>
              {{volume.owner}}
              {% if search_type == "filevault" %}
                <a href="/{{search_type}}/{{volume.volume_uuid}}/change-owner">Edit</a>
              {% endif %}
            </td>
          </tr>
          <tr><th>Creator</th><td>{{volume.created_by}}</td></tr>
          <tr><th>Serial</th><td>{{volume.serial}}</td></tr>
          <tr><th>Hard Disk Serial</th><td>{{volume.hdd_serial}}</td></tr>
        {% endif %}
        {% if search_type == "bitlocker" %}
          <tr><th>DN</th><td>{{volume.dn}}</td></tr>
          <tr><th>When Created</th><td>{{volume.when_created}}</td></tr>
        {% endif %}
        {% if search_type == "luks" %}
          <tr><th>Platform UUID</th><td>{{volume.platform_uuid}}</td></tr>
          <tr><th>Hard Disk Serial</th><td>{{volume.hdd_serial}}</td></tr>
        {% endif %}
        <tr><th>Creation time (UTC)</th><td>{{volume.created}}</td></tr>
      </table>
    </li>
  {% endfor %}
  </ol>
{% endif %}
{% endblock %}
